package com.bcu.wish.mapper;
import java.util.List;

import com.bcu.wish.entity.User;
import com.bcu.wish.entity.search.UserSearch;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUserIdAndUserPwd(@Param("userId") String userId, @Param("userPwd") String userPwd);

    String selectUserResultByUserId(@Param("userId")String userId);

    List<User> selectAll();

    List<User> selectByUserType(@Param("userType")Integer userType);

    List<User> selectUserResult();

    List<User> selectUserResultOrderByScore(@Param("userResult") String userResult);

    int updateUserResultByUserId(@Param("userId") String userId, @Param("userResult") String userResult);

    int updateUserResult();

    int updateUserPwdByUserId(@Param("userId") String userId, @Param("userPwd") String userPwd);

    List<User> search(UserSearch userSearch);
}